package com.dy.design_pattern_study.observer_mode.dome2_decoupling.observer_code;

import com.dy.design_pattern_study.observer_mode.dome2_decoupling.notifier_code.Subject;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-03
 * @Content 抽象观察者
 */
public abstract class Observer {

    protected String name;
    protected Subject sub;

    public Observer(String name, Subject sub)
    {
        this.name = name;
        this.sub = sub;
    }

    public abstract void Update();

}
